package cn.wolfcode.wolf2w.cloud.feign.hystrix;

import cn.wolfcode.wolf2w.cloud.feign.UserInfoFeignApi;
import cn.wolfcode.wolf2w.cloud.member.domain.UserInfo;
import cn.wolfode.wolf2w.cloud.commom.util.JsonResult;
import org.springframework.stereotype.Component;
//降级操作
@Component
public class UserInfoFeignHystrix implements UserInfoFeignApi {
    @Override
    public JsonResult get(String id) {
        System.out.println("出问题啦，找降级方法啦.....");
        return JsonResult.defaultError();
    }

    @Override
    public JsonResult checkPhone(String phone) {
        System.out.println("出问题啦，找降级方法啦.....");
        return JsonResult.defaultError();
    }

    @Override
    public JsonResult regist(String phone, String nickname, String password, String rpassword) {
        System.out.println("出问题啦，找降级方法啦.....");
        return null;
    }
}
